Given the corner points of a triangle (x1, y1), (x2, y2), (x3, y3), compute the area. Hint: The...
Given the corner points of a triangle (x1, y1), (x2, y2), (x3, y3), compute the area.
Hint: The area of the triangle with corner points (0, 0), (x1, y1), and (x2, y2) is |x1 · y2 - x2 · y1| / 2.
Complete the following code:
public class Geometry
{
/**
A method to return the smaller of two integers
@param a, the first integer
@param b, the second integer
@return small, the smaller of the two
*/
public static double triangleArea(double x1, double y1,
double x2, double y2, double x3, double y3)
{
...
}
}10 years ago
5
Answer(0)
Bids(0)
other Questions(10)
- STR 581 Strategic Planning & Implementation Week 6 Assignment
- disscussion reply to students, minimum 50 words in own words
- MGMT 520 Final Exam Answers Farmer Joe Andrews, who owned 350 acres of farm land, was approached by Ajax Oil Company that offered to buy the front 30 acres of his land
- Case Study - Standard Concrete Products, Inc. vs. Teamsters Local 952
- researcher_D only
- 3 page summary
- 1.5 pages essay
- Blurb of 150 words
- Assignment 1: Bottling Company Case Study
- MKTG 420 Salesmenship Week 2 Discussions and Quiz Devry